package com.levenx.utils;

import com.levenx.error.exceptions.CoreException;

public final class Assert {

    public static final void isNull(Object object,String errorCode,String errorMsg){
        if(null == object){
            throw new CoreException(errorCode,errorCode);
        }
    }

    public static final void isNull(Object object,String errorCode){
        isNull(object,errorCode,null);
    }

}
